<?php
// namespace resgister;
include 'database.php';

$servername = "localhost";
$username = "root";
$password = "";
$dbName = 'taodb';
$keyandchange = [];
$childrendata = [];


$update = new databaseClass\database($servername, $username, $password,$dbName);

$id = 312;
$age = 11;
$phone = '13532265985';
$varname = ['id','age','phone'];
$keyandchange = compact($varname);
// var_dump($keyandchange);
$update->changetb('users ');
$update->updatedata($keyandchange);
var_dump($update->result);
